<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="object1.xsl"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<title>
				<xsl:value-of select="object/dict_object/@snote"/>
			</title>
			<body>
				<xsl:apply-templates/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="object">
		<table>
			<tr>
				<xsl:for-each select="dict_object2fields/dict_object2field">
					<th>
						<xsl:value-of select="@suiName"/>
					</th>
				</xsl:for-each>
				<th>
						操作
				</th>
			</tr>
			<tr>
				<xsl:for-each select="dict_object2fields/dict_object2field/@sfieldName">
					<xsl:variable name="objProperty" select="."/>
					<td>
						<xsl:value-of select="$objProperty"/>
					</td>
				</xsl:for-each>
				<td>
					操作
				</td>
			</tr>
			<xsl:for-each select="objectValues/objectValue">
				<tr>
					<td>
						<xsl:value-of select="@id"/>
					</td>
					<td>
						<xsl:value-of select="@username"/>
					</td>
					<td>
						<a>
							<xsl:attribute name="href">common.edit.do?objectid=<xsl:value-of select="/object/objectValues/@id"/>&amp;id=<xsl:value-of select="@id"/></xsl:attribute>编辑</a>
						<a>
							<xsl:attribute name="href">common.delete.do?id=<xsl:value-of select="@id"/></xsl:attribute>删除</a>
					</td>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
</xsl:stylesheet>
